*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  /* 滚动条的宽度 */
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  /* 滚动条凹槽的颜色，还可以设置边框属性 */
  &::-webkit-scrollbar-track-piece {
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
  }

  /* 滚动条的设置 */
  &::-webkit-scrollbar-thumb {
    background-color: #cfcfcf;
    background-clip: padding-box;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;

    &:hover {
      background-color: #bdbdbd;
    }
  }
}

html,
body,
#app,
.n-config-provider {
  height: 100%;
}

#app {
  .n-h6,
  .n-h5,
  .n-h4,
  .n-h3,
  .n-h2,
  .n-h1 {
    margin: 0;
    line-height: 1;
    font-family: Arial, Microsoft YaHei !important;
  }

  .n-h1 {
    font-size: 30px;
  }

  .n-h2 {
    font-size: 26px;
  }

  .n-h3 {
    font-size: 22px;
  }

  .n-h4 {
    font-size: 18px;
  }

  .n-h5 {
    font-size: 14.4px;
  }

  .n-h6 {
    font-size: 12.24px;
  }

  .n-input .n-input__input-el + .n-input__placeholder {
    padding-top: 3px;
  }

  .n-form-item .n-form-item-label {
    line-height: 1;
    align-items: center;
    margin-top: 1px;
  }

  .n-dynamic-input .n-dynamic-input-item {
    margin-bottom: 0;
  }

  .n-base-select-option--selected {
    .n-base-select-option__content {
      color: var(--n-option-text-color-active);
    }
  }
}

.n-base-clear {
  margin-right: 8px !important;
  .n-base-clear__clear {
    i {
      font-size: 22px !important;
      margin-top: -3px;
    }
  }
}

.n-notification-main__content {
  max-height: 500px;
  overflow: auto;
  padding-right: 10px;
}

.github-markdown-body,
.vuepress-markdown-body {
  background: transparent !important;
  padding: 0 !important;
  color: unset !important;
}

.github-markdown-body table tr,
.vuepress-markdown-body table tr {
  background: transparent !important;
}

.line-numbers-wrapper,
.vuepress-markdown-body div[class*='v-md-pre-wrapper-'].line-numbers-mode:after {
  width: 2.5rem !important;
}

.vuepress-markdown-body div[class*='v-md-pre-wrapper-'].line-numbers-mode pre {
  padding-left: 4rem !important;
}

.vuepress-markdown-body td,
.vuepress-markdown-body th {
  border-color: #666666 !important;
}

.vuepress-markdown-body code {
  color: #3c91e4 !important;
}

@media only screen and (max-width: 420px) {
  .vuepress-markdown-body div[class*='v-md-pre-wrapper-'] {
    left: 20px;
  }
}

.notice-container {
  .n-notification {
    width: 420px;
  }
}

@media only screen and (max-width: 450px) {
  .notice-container {
    .n-notification {
      width: 350px;
    }
  }
}
